package com.suray.wcs.res.service.rescontact;


import com.suray.basic.wcs.path.core.Node;

/**
 * 动作 包含除行驶外的所有命令
 *
 * @author szn
 */
public class ActionOrder {
    public ActionOrder(int commandNo, int command) {
        this.commandNo = commandNo;
        this.command = command;
    }

    public ActionOrder(int commandNo, int command, int commandParameter) {
        this.commandNo = commandNo;
        this.command = command;
        this.commandParameter = commandParameter;
    }

    /**
     * 指令序号
     */
    private int commandNo;
    /**
     * 指令
     */
    private int command;
    /**
     * 指令参数
     */
    private int commandParameter;
    /**
     * 指令坐标参数
     */
    private Node commandNodeParameter;

    public int getCommand() {
        return command;
    }

    public void setCommand(int command) {
        this.command = command;
    }

    public int getCommandParameter() {
        return commandParameter;
    }

    public void setCommandParameter(int commandParameter) {
        this.commandParameter = commandParameter;
    }

    public int getCommandNo() {
        return commandNo;
    }

    public void setCommandNo(int commandNo) {
        this.commandNo = commandNo;
    }

    public Node getCommandNodeParameter() {
        return commandNodeParameter;
    }

    public void setCommandNodeParameter(Node commandNodeParameter) {
        this.commandNodeParameter = commandNodeParameter;
    }

    @Override
    public String toString() {
        return "Action [commandNo=" + commandNo + ", command=" + command + ", commandParameter=" + commandParameter
                + "]";
    }
}
